// 基础路由
const baseRouter = [{
    path: '/home',
    component: (resolve) => require(['@/views/dashboard'], resolve),
    name: 'home',
    meta: {
      title: 'home',
      icon: 'icon-ym icon-ym-nav-home',
      affix: true,
      zhTitle: '首页'
    }
  },
  {
    path: '/dashboard',
    component: (resolve) => require(['@/views/basic/dashboard'], resolve),
    name: 'dashboard',
    meta: {
      title: 'dashboard',
      icon: 'icon-ym icon-ym-generator-kanban',
      affix: false,
      zhTitle: '门户展示'
    }
  },
  {
    path: '/messageRecord',
    component: (resolve) => require(['@/views/basic/messageRecord'], resolve),
    name: 'messageRecord',
    meta: {
      title: 'messageRecord',
      affix: false,
      zhTitle: '消息中心',
      icon: 'icon-ym icon-ym-sysNotice',
    }
  },
  {
    path: '/previewModel',
    component: (resolve) => require(['@/views/basic/dynamicModel'], resolve),
    name: 'previewModel',
    meta: {
      title: 'previewModel',
      affix: false,
      zhTitle: '功能预览',
      icon: 'icon-ym icon-ym-btn-preview',
    }
  },
  {
    path: '/profile',
    component: (resolve) => require(['@/views/basic/profile'], resolve),
    name: 'profile',
    meta: {
      title: 'profile',
      affix: false,
      zhTitle: '个人信息',
      icon: 'icon-ym icon-ym-user',
    }
  },
  {
    path: '/emailDetail',
    component: (resolve) => require(['@/views/extend/email/DetailPage'], resolve),
    name: 'emailDetail',
    meta: {
      title: 'emailDetail',
      affix: false,
      zhTitle: '查看邮件',
      icon: 'icon-ym icon-ym-emailExample',
    }
  },
  {
    path: '/workFlowDetail',
    component: (resolve) => require(['@/views/workFlow/workFlowDetail'], resolve),
    name: 'workFlowDetail',
    meta: {
      title: 'workFlowDetail',
      affix: false,
      zhTitle: '流程详情',
      icon: 'icon-ym icon-ym-workFlow',
    }
  },
  {
    path: '/iqcLot',
    component: (resolve) => require(['@/views/q1/business/inspectionLot/Form.vue'], resolve),
    name:'iqcLot',
    meta:{
      title:'iqcForm',
      affix:false,
      zhTitle:'来料检验批详情'
    }
  },
  {
    path: '/ipqcLot',
    component: (resolve) => require(['@/views/q1/business/ipqcInspectionLot/Form.vue'], resolve),
    name:'ipqcLot',
    meta:{
      title:'ipqcForm',
      affix:false,
      zhTitle:'制程检验批详情'
    }
  },
]
export default baseRouter